<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <div th:include="path::sub_path_css" ></div>
</head>

<body class="gray-bg ">
    <div class="gr-dg">
                <div class="col-sm-12 select-sty search-choice">
                    <form class="form-inline" id="form_search">
                        <div class="form-group">
                            <label>用户名称：</label>
                            <input type="text" name="userName" id="userName" placeholder="用户名称" class="form-control search-form-in">
                        </div>
                        <div class="form-group">
                            <label>登录账号：</label>
                            <input type="text" name="loginName" id="loginName" placeholder="登录账号" class="form-control search-form-in">
                        </div>
                        <div class="form-group">
                            <label>性别：</label>
                            <select class="search-form-in" name="state" id="state" th:with="state=${@dictValue.findDictByKey('user_sex')}" style="width: 15vw;">
                                <option value="">全部</option>
                                <option th:each="dict : ${state}" th:text="${dict.dictText}" th:value="${dict.dictValue}"></option>
                            </select>
                        </div>
                        <div class="form-group">
                            <a href="#" class="btn btn-primary btn-rounded" onclick="$.table.formSearch('form_search');">查询</a>
                            <a class="btn btn-success btn-rounded" href="#" onclick="$.table.reset();">重置</a>
                        </div>
                    </form>
                </div>
                <div class="toolbar-group" id="toolbar" role="group">
                    <shiro:hasPermission name="sys:user:add">
                        <a class="btn btn-success" onclick="$.modal.openAdd();">
                            <i class="fa fa-plus"></i> 新增
                        </a>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="sys:user:edit">
                        <a class="btn btn-primary" onclick="$.modal.openEdit();">
                            <i class="fa fa-edit"></i> 修改
                        </a>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="sys:user:remove">
                        <a class="btn btn-info" onclick="$.modal.remove();">
                            <i class="fa fa-exchange"></i> 删除
                        </a>
                    </shiro:hasPermission>
                </div>
                <div class="col-sm-12 white-bg teble-sty">
                    <table id="gdTable" data-mobile-responsive="true">
                    </table>
                </div>
    </div>

    <div th:include="path::sub_path_js" ></div>

    <script th:inline="javascript">
        var datas = [[${@dictValue.findDictByKey('user_sex')}]];
    </script>
    <script th:inline="javascript" type="text/javascript" th:src="@{/js/fly-admin/system/user/user_list.js}"></script>
</body>

</html>
